import request from "../../common/request";

export function getUserList(data: {
  endTime?: string;
  pageNum?: number;
  pageSize?: number;
  phone?: string;
  startTime?: string;
  status?: number;
  userName?: string;
}) {
  return request({
    url: "/system/user/list",
    method: "POST",
    data,
  });
}

export function delUsers(userId: number) {
  return request({
    url: `/system/user/delete/${userId}`,
    method: "DELETE",
  });
}

export function accountControl(data: { status: number; userId: number }) {
  return request({
    url: "/system/user/changeStatus",
    method: "POST",
    data,
  });
}
